public class Test {
    public static void main(String[] args) {
        MySingleList mySingleList=new MySingleList();
        //mySingleList.createList();
        mySingleList.addLast(12);
        mySingleList.addLast(23);
        mySingleList.addLast(34);
        mySingleList.addLast(45);
        mySingleList.addLast(56);

        mySingleList.addIndex(3,177);

        mySingleList.display();

        mySingleList.removeAllKey(45);
        mySingleList.reverseList();
        mySingleList.display();

        MySingleList.ListNode ret=mySingleList.reverseList();
        mySingleList.display(ret);
        System.out.println("是否包含:"+mySingleList.contains(34));
    }
}
